﻿using System.Collections.Generic;

/// <summary>
/// 广播当前服务器连接的所有客户端（临时充当某房间内用户列表信息）
/// </summary>
class MsgAllClientNtf : BaseProtocol
{
    public uint count = 0;
    public List<uint> clientIdList = new List<uint>();

    public override int ProtocolID
    {
        get
        {
            return 21108;
        }
    }
    /// <summary>
    /// Client
    /// </summary>
    protected override void ReadParams()
    {
        count = ReadUInt();
        clientIdList = new List<uint>();
        for (int i = 0; i < count; i++)
        {
            clientIdList.Add(ReadUInt());
        }
    }
    /// <summary>
    /// Server
    /// </summary>
    protected override void WriteParams()
    {
        count = (uint)clientIdList.Count;
        Write(count);
        for (int i = 0; i < count; i++)
        {
            Write(clientIdList[i]);
        }
    }
}

